home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / cxl52_1.zip / CXLEMS.H < prev    next >
Text File  |  1990-02-17  |  2KB  |  48 lines

  1. /*
  2.    ┌──────────────────────────────────────────────────────────────────────────┐
  3.    │                                                                          │
  4.    │  CXLEMS.H  -  CXL is Copyright (c) 1987-1990 by Mike Smedley.            │
  5.    │                                                                          │
  6.    │  This header file contains prototypes of CXL's Expanded Memory           │
  7.    │  Specification (EMS) functions.                                          │
  8.    │                                                                          │
  9.    └──────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. #if defined(__TURBOC__)                         /* Turbo C */
  13.     #if __STDC__
  14.         #define _Cdecl
  15.     #else
  16.         #define _Cdecl  cdecl
  17.     #endif
  18.     #define _Near
  19. #elif defined(__ZTC__)                          /* Zortech C++ */
  20.     #define _Cdecl
  21.     #define _Near
  22. #elif defined(M_I86) && !defined(__ZTC__)       /* Microsoft C/QuickC */
  23.     #if !defined(NO_EXT_KEYS)
  24.         #define _Cdecl  cdecl
  25.         #define _Near   near
  26.     #else
  27.         #define _Cdecl
  28.         #define _Near
  29.     #endif
  30. #endif
  31.  
  32. /*---------------------------[ function prototypes ]-------------------------*/
  33.  
  34. #if !defined(MK_FP)
  35. #define MK_FP(seg,ofs)      ((void far *) (((unsigned long)(seg) << 16) | \
  36.                             (unsigned)(ofs)))
  37. #endif
  38. int      _Cdecl emsalloc(int numpages);
  39. int      _Cdecl emsdealloc(int emmhandle);
  40. int      _Cdecl emsexist(void);
  41. unsigned _Cdecl emsframe(void);
  42. unsigned _Cdecl emsfree(void);
  43. int      _Cdecl emsmap(int emmhandle,int logpage,int phypage);
  44. int      _Cdecl emsread(char *dest,unsigned emsofs,unsigned numbytes);
  45. unsigned _Cdecl emstotal(void);
  46. char    *_Cdecl emsver(void);
  47. int      _Cdecl emswrite(char *src,unsigned emsofs,unsigned numbytes);
  48.